package com.htzz.collection.bean;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author xdz
 * @email ixudezhi@163.com
 * @date 2021-08-31 09:13:01
 */
@Data
@ApiModel("设备存储对象")
public class DevInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@JsonIgnore
	private Integer id;
	/**
	 * 设备ID
	 */
	@NotEmpty
	@Length(min = 1,max = 64)
	@ApiModelProperty(value = "设备ID",example = "sn19990111")
	private String devId;
	/**
	 * 设备名称
	 */
	@NotEmpty
	@Length(min = 1,max = 64)
	@ApiModelProperty(value = "设备名称",example = "调试设备")
	private String devName;
	/**
	 * 设备地址
	 */
	@Length(min = 1,max = 255)
	@ApiModelProperty(value = "设备地址",example = "北京石景山点石商务公园")
	private String devAddr;
	/**
	 * 制造商
	 */
	@Length(min = 1,max = 64)
	@ApiModelProperty(value = "制造商",example = "航天云网")
	private String manufacturer;
	/**
	 * 保修结束日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "保修结束日期",example = "2021-08-31 00:00:00")
	private Date repairEndDate;
	/**
	 * 创建时间
	 */
	@NotNull
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间",example = "2021-08-31 00:00:00" )
	private Date createTime;

	/**
	 * 采集点信息
	 */
	@ApiModelProperty(value = "设备采集点信息" )
	private List<KInfoEntity> kinfoList;
}
